package com.ruoyi.app.config.redis;

import cn.hutool.core.util.StrUtil;

public class CacheKey {
    //未读消息数量

    //最后一条消息
    private   static   final  String  groupLastMessage="im:app:message:lastMessage:group:userId:{} ";
    private   static  final  String  oneVoneLastMessage="im:app:message:lastMessage:oneVone:userId:{} ";


    public static String getGroupLastMessage(Long userId ) {
        return StrUtil.format(groupLastMessage,userId ) ;
    }

    public static String getOneVoneLastMessage(Long userId ) {
        return StrUtil.format(oneVoneLastMessage,userId ) ;
    }
}
